html {
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    min-height: 50px; //为什么要用min-height ?
    background-color: rgb(255, 132, 29);
    position: relative;
    .left {
        position: absolute;
        top: 30%;
        left: 4%;
        width: 140px;
        height: 20px;
    }
    .right {
        position: absolute;
        top: 20%;
        right: 4%;
        width: 30px;
        height: 30px;
    }
}

.view {
    flex: 1;
    // background-color: #ccc;
    .search {
        display: flex;
        height: 10%; // position: relative;
        padding: 10px;
        input {
            flex: 1;
            background-color: rgb(241, 241, 241);
            border-radius: 50px;
            margin-right: 5px;
            padding-left: 20px;
        }
        button {
            width: 60px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 20px;
            color: #fff;
            background-color: rgb(255, 132, 29);
            font-size: 16px;
        }
    } 
    .list{
        .list_title{
            display: flex;
            justify-content: space-between;
            padding: 10px 5px;
            background-color: rgb(244, 244, 244);
            .left{
                display: flex;
            }
            .right{
                button{
                    font-size: 16px;
                    padding: 2px 15px;
                    border-radius: 6px;
                }
            }
        }
        .list_content{
            ul{
                li{
                    display: flex;
                    border-bottom: 1px solid rgb(170, 170, 170);
                    padding-bottom: 20px;
                    .list_img{
                        width: 80px;
                        // height: 45px;
                        background-color: red;
                    }
                    .list_info{
                        flex: 1;
                        padding: 5px 10px;
                        .list_name{
                            font-size: 14px;
                        }
                        .list_price{
                            display: block;
                            color: red;
                            font-size: 20px;
                        }
                        .list_compare{
                            padding-right:2px;
                            color: rgb(207, 207, 207);
                        }
                        .list_speak{
                            color: rgb(207, 207, 207);
                        }
                    }
                }
            }
        }
        .pageChange{
            display: flex;
            justify-content: space-between;
            padding: 10px 25px;
            align-items: center;
            .pre{
                width: 80px;
                height: 40px;
                font-size: 16px;
                background-color: #ccc;
                border-radius: 5px;
                line-height: 40px;
                text-align: center;
            }
            .select{
                width: 80px;
                height: 40px;
                font-size: 16px;
                border-radius: 5px;
                // line-height: 40px;
                // text-align: center;
            }
            .next{
                width: 80px;
                height: 40px;
                font-size: 16px;
                background-color: #ccc;
                border-radius: 5px;
                line-height: 40px;
                text-align: center;
            }
        }
    }

    .foot {
        margin-top: 20px;
        .foot_up {
            display: flex;
            a {
                width: 33.33%;
                height: 30px;
                display: flex;
                justify-content: center;
                align-items: center;
                border: 1px solid rgb(237, 237, 237); // img{
                //     width: 15px;
                //     height: 15px; 
                // }
            }
        }
        .foot_down {
            height: 60px;
            text-align: center;
            font-size: 12px;
            padding: 20px;
            color: rgb(170, 170, 170);
            border: 1px solid rgb(241, 241, 241);
            a {
                display: inline-block;
            }
            a:first-child {
                color: red;
            }
            a:nth-child(2) {
                color: black;
            }
        }
    }
}